home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
batch
/
batmn21e
/
tracy.doc
< prev
next >
Wrap
Text File
|
1990-11-20
|
6KB
|
147 lines
│
│ T R A C Y 2 . 1 e
│
│ - interactive debugger
│ for Batman
│
│ Thor Ivar Ekle 1990
│
WHAT IS TRACY?
──────────────
Tracy is a so-called interactive debugger for the batch file compiler
Batman. With Tracy you can run the program files produced by Batman one
line at a time, while viewing the contents of variables and parameters.
Tracy makes it a lot easier to track down errors in program files.
Any questions regarding Batman or Tracy? Call me at +47-7-518612.
USING TRACY
───────────
Tracy version 2.1e should be used together with Batman version 2.1e.
The command for starting the program is:
TRACY [/S] <program file> [<parameters>]
The parameter <program file> is the name of the .BAT-file you wish to
debug. It must already be compiled with Batman, and in order to able to
debug it with Tracy, you must use the Batman /D option.
Any parameters for the batch file should be appended to the command.
You can include up to 9 parameters.
On some old colors monitors you might see some "snow" when the screen
is being updated. Use the /S option to prevent this. This will lead to
slower execution of Tracy, however.
Tracy needs these files in order to be able to run a program file:
filename.BAT - the batch file
filename.EXE - the compiled program file
filename.DIK - debug information
These must also reside in the same directory. This does not have to be
the current directory.
THE SCREEN
──────────
When Tracy is ready for use, the screen will look something like this:
┌─────────────────────────────────────────────────────────────────────┐
│ TRACY 2.1e Thor Ivar Ekle 1990 │
│ Line 8 385 kB │
├─────────────────────────────────────────────────────────────────────┤
│rem │
│rem This is a demonstration of the MENU command in Batman. │
│rem The commands for the menu items might need editing, even if │
│rem the called programs are stored in DOS' path. │
│rem │
│ │
│:main_menu │
│color 7 1 │
│cls │
│color 0 7 │
│xy 1 1 │
│clreol │
│echo " BATDEMO 1.8" │
│xy 1 25 │
├─────────────────────────────────────────────────────────────────────┤
│0: C:\TPOO\SOURCE\BATMAN\BATDEMO.EXE │
│ │
│ │
│ │
│ │
├─────────────────────────────────────────────────────────────────────┤
│ C:\TPOO\SOURCE\BATMAN\BATDEMO.BAT │
└─────────────────────────────────────────────────────────────────────┘
The top line displays the name of the program, version number and
author, and below this the current line number and the amount of free
memory is shown.
The upper window shows part of the batch file. The current program line
is highlighted.
Below this is another window, where the parameters (%0 - %9), the
variables (%%A - %%Z) and DOS environment variables are shown. At the
bottom line the name of the program file is displayed.
FUNCTIONS
─────────
These functions are available in Tracy:
<SPACE> - executes the highlighted line.
TAB - shows you what the program has printed on the screen,
if anything. Press TAB again to return to Tracy's
screen.
<UP> - scrolls the list of parameters and variables up one
line.
<DOWN> - scrolls the list down one line.
ALT + A - starts automatic execution of the program. Execution
continues until a key is pressed.
ESC - aborts the debugging.
When the program terminates, a message is displayed that reports the
errorlevel with which the program terminated. When you see this
message, you may press:
RETURN - start the program over.
ESC - return to DOS.
Apart from <SPACE> and ALT + A, you can also use the keys listed above.
The same applies when debugging is aborted with Esc. Tracy will display
a message which says that the program has been aborted, and you can
press Return or Esc.
FINAL WORDS
───────────
I hope you find Batman useful. Suggestions for improvements and bug
reports are welcomed.